<html>
<head>
<script language="javascript">
function setcomponent() {
  if (window.opener) {
	var oEditor = window.opener.FCKeditorAPI.GetInstance('ta') ;
	var appname = document.new_component.appname.value;
	var name = document.new_component.name.value;
	var op = document.new_component.op.value;
	var method = document.new_component.method.value;

	var html="<form method='"+method+"' action='index.php?appname=" + appname + "&op=" + op +"' name='"+name+"'>\n";
	html=html+"<br /><br /><p align='right'><input type='submit' value='invia' name='submit' /></p>\n";
	html=html+"</form>\n";
	html=html +"\n";

	var code="";
	    code=code+"\n // insert here the php code of form: "+name +" op: "+ op + " \n";

	oEditor.InsertHtml(html);
	window.opener.document.editor.codice.value=window.opener.document.editor.codice.value+code;
  }
  this.close();
}
</script>
<title>textbox_properties</title>
</head>
<body>
<form name="new_component" action="javascript:setcomponent();" >
appname		<input type="text" name="appname" value="<?=$appname?>"><br />
name		<input type="text" name="name" value="FormData"><br />
op	 	<input type="text" name="op"><br />
method	 	<select name='method'>
		    <option>GET</option>
		    <option>POST</option>
		</select><br />
<hr />
<input type="submit" value="make FormData" ><br />
</form>
</body>
